package communication;

import java.io.IOException;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;

public class ClientConnection extends SocketConnection {

	public ClientConnection(InetAddress address, int port) throws IOException {
		super(new Socket(address, port));
	}
	
	
	public FileAcceptorConnection createFileAcceptor(int port) throws IOException
	{
		return new FileAcceptorConnection(port);
	}
	
	public FileSenderConnection createFileSender(InetAddress address, int port) throws IOException
	{
		return new FileSenderConnection(address,port);
	}

	
}
